package lab02.test12;

public class Circle extends Shape{

    final static double PI=3.14;
    double radius;
    double area;
    double perimeter;
    @Override
    public void getArea() {

        area=PI*radius*radius;
        System.out.println("圆的面积:"+area);
    }

    @Override
    public void getPerimeter() {

        perimeter=2*PI*radius;
        System.out.println("圆的周长："+perimeter);
    }
}
